/*
 * Copyright (c) 2023, 2024,yzc.cn All rights reserved.
 *
 */
package com.by.common.exception;

import java.util.Map;

/**
 * <p>Project: erp-cloud-api - ValidateException</p>
 * <p>Powered by yzc On 2024-01-08 17:28:54</p>
 * <p>描述：<p>
 *
 * @author yzc [yzc0415@126.com]
 * @version 1.0
 * @since 17
 */

/**
 * 自定义异常
 */
public class ValidateException extends RuntimeException{
    //记录验证错误信息
    Map<String, String> errors;


    public ValidateException(Map errors) {
        super("后端验证失败");
        this.errors = errors;
    }

    public Map<String, String> getErrors() {
        return errors;
    }
}
